package com.self.test.jisuanqi;

public class ActionFactory {
	public static IOperation getAction(String full) {
		IOperation action = null;
		if("+".equals(full)) {
			action = new Add();
		} else if("-".equals(full)) {
			action = new Sub();
		}
		return action;
	}
}
